<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
    />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      #app {
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      header {
        width: 320px;
        height: 44px;
        background-color: #0cc53f;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      header div {
        width: 60px;
        height: 25px;
        font-size: 12px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .hot {
        border-radius: 12.5px 0 0 12.5px;
        background-color: #63da85;
      }
      .sub {
        border-radius: 0 12.5px 12.5px 0;
        background-color: #3cd166;
      }

      nav {
        width: 320px;
        height: 35px;
        border-bottom: 1px solid #d9d9d9;
        display: flex;
      }
      .navItem {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 13px;
        color: #656565;
      }
      .navItem:first-child {
        color: #0cc53f;
        position: relative;
        /* border-bottom: 3px solid #0cc53f;
        border-top: 3px solid transparent; */
      }
      .navItem:first-child::after {
        content: "";
        width: 100%;
        height: 3px;
        background-color: #0cc53f;
        position: absolute;
        left: 0;
        bottom: 0;
      }

      main {
        width: 320px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }
      .mainItem {
        width: 158px;
        height: 187px;
        border: 1px solid #d9d9d9;
        margin-top: 4px;
        display: flex;
        flex-direction: column;
      }

      .mainItem img {
        width: 100%;
        height: 158px;
      }
      .mainItem span {
        flex: 1;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <header>
        <div class="hot">热点</div>
        <div class="sub">关注</div>
      </header>

      <nav>
        <div class="navItem">足球现场</div>
        <div class="navItem">足球生活</div>
        <div class="navItem">足球美女</div>
      </nav>

      <main>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
        <div class="mainItem">
          <img src="../day01/images/1.jpg" alt="" />
          <span>小丸子啊小丸子</span>
        </div>
      </main>
    </div>
  </body>
</html>
